package admin

import (
	"myserver/app/controllers/shop"
	"myserver/app/jwt"

	"github.com/gin-gonic/gin"
)

func RegisterShopRouters(r *gin.Engine) {
	f := shop.ShopControllers{}
	shopRouter := r.Group("/shop")
	shopRouter.Use(jwt.ValidateToken())
	{
		shopRouter.POST("/ceate", f.CeateShop)
		shopRouter.POST("/upDataShop", f.UpDataShop)
		shopRouter.GET("/list", f.List)
	}
}
